/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Main;

import Model.CashRegister;
import Model.DrinkSpec;
import Model.Employee;
import Model.Order;
import Model.OrderLineItem;

public class TestCall {

    
  public static void main(String args[]){
    Employee emp1 = new Employee(100, "root", 18, "m", 2);
    DrinkSpec cola = new DrinkSpec("cola", 1, "cola 33 ml", 2.00);
    DrinkSpec fanta = new DrinkSpec("fanta", 2, "fanta 1lt", 5);
    CashRegister CR = new CashRegister(emp1);
    Order order1 = new Order();
    OrderLineItem oli1 = new OrderLineItem(cola, 2);
    OrderLineItem oli2 = new OrderLineItem(fanta, 1);
    
    order1.getOrderLineItemList().add(oli1);
    order1.getOrderLineItemList().add(oli2);
    
    CR.getOrderList().add(order1);
    
    System.out.println( CR.getOrderList().get(0).getTotal() );
    System.out.println( CR.getEmployee().getName());
    
    
    
        
        
  }
}
